package org.gd.hellojaxb.privat24.credit;

import org.gd.hellojaxb.adapters.DoubleAdaptersFactory;

import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "pan")
@XmlAccessorType(XmlAccessType.NONE)
@SuppressWarnings("unused")
public class CreditLimitCardInfoPan {

    @XmlAttribute(name = "num")
    private String number;
    @XmlAttribute(name = "ccy")
    private String currency;
    @XmlAttribute(name = "limit")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double limit;

    public CreditLimitCardInfoPan() {
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Double getLimit() {
        return limit;
    }

    public void setLimit(Double limit) {
        this.limit = limit;
    }
}
